package com.audaque.cloud.iqs.dbs.vo;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 表信息
 * @author: 刘鹏悦
 * @date: 2021-7-16 16:13:00
 */
@Data
@Schema(description = "表信息")
@NoArgsConstructor
@SuppressFBWarnings(value = {"EI_EXPOSE_REP", "EI_EXPOSE_REP2"})
public class TableInfo implements java.io.Serializable {
	@Schema(description = "表名")
	private String tableName;

	@Schema(description = "表注释")
	private String tableComment;

	@Schema(description = "字段列表")
	private List<ColumnInfo> columns;

	public TableInfo(String tableName, String tableComment) {
		this.tableName = tableName;
		this.tableComment = tableComment;
	}
}